package com.coin.service;

import com.coin.dao.account.AccountMapper;
import com.coin.dao.model.Account;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by chenhao on 2017/5/18.
 */
@Service
@Transactional
public class AccountService {
    @Resource
    private AccountMapper accountMapper;

    public boolean addAccountInfo(Account account) {
        return accountMapper.insert(account) == 1;
    }
}
